package com.bank;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.config.*;
import sun.rmi.transport.Connection;

import javax.sql.DataSource;
import java.io.IOException;
import java.sql.SQLException;

public class main {
    public static void main(String[] args) throws SQLException {
        AnnotationConfigApplicationContext actx=new AnnotationConfigApplicationContext(Config.class);
        DataSource ds=(DataSource) actx.getBean("datasource");
        Connection conn=(Connection) ds.getConnection();


    }
}
